Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(eips): Indexed Blob Hash #1526

Merged
merged 3 commits into from
Oct 24, 2024
Merged

Conversation

refcell
Copy link
Contributor

@refcell refcell commented Oct 19, 2024

Description

Alloy's EIP 4844 Blob Sidecar provided a way to verify blobs given the indexed blob hash. Previously, this argument was the EIP 1898 NumHash construct, which doesn't translate to beacon. The indexed blob hash we actually want to accept is a net new type with an index and blob hash, instead of the block number and hash from the NumHash type.

This PR introduces that type, and changes the verify_blob method to accept the IndexedBlobHash.

Copy link
Contributor

@clabby clabby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to this being a separate type.

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, we need to be actually compatible with beacon json API here because this is where the value is pulled from?

@mattsse mattsse merged commit 626c696 into alloy-rs:main Oct 24, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants